package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.MemberConfigRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MemberConfigRoleRepository extends JpaRepository<MemberConfigRole, Long> {

    List<MemberConfigRole> findByRoleId(Long roleId);

    void deleteAllByRoleIdEquals(Long roleId);

    List<MemberConfigRole> findByMemberConfigId(Long memberConfigId);
}
